#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#include "uri.h"
#include "progress.h"

#ifndef __SOCKET_H_
#define __SOCKET_H_

#define VERBOSE		1

typedef struct socket_t {

   int fd;
   FILE *f;
   struct sockaddr_in s;
   struct hostent *serv;

} SOCK;

int sock_create(char *, int, int);
void sock_send(int , char *, ...);
int download(URI *uri);

#endif
